import 'package:flame/components.dart';
import 'package:flamedemo/game/MyGame.dart';

class Background extends SpriteComponent with HasGameRef<MyGame> {
  @override
  Future<void> onLoad() async {
    sprite = await Sprite.load("land.png");
    size = gameRef.size;
  }
}
